package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Content;
import com.example.vo.UserContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ContentMapper extends BaseMapper<Content> {

    @Select("select * from content join user where content.user_id = user.user_id")
    List<UserContent> getAllUserContents();
}
